package cn.yitun.chat.yitunservercommonlib.converter.po2vo.system;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.system.MenuInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.system.MenuVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface MenuPo2VoConverter {

    MenuPo2VoConverter INSTANCE = Mappers.getMapper(MenuPo2VoConverter.class);

    MenuInfo vo2po(MenuVo vo);

    List<MenuInfo> vo2po(List<MenuVo> voList);

    @InheritInverseConfiguration
    MenuVo po2vo(MenuInfo dto);

    @InheritInverseConfiguration
    List<MenuVo> po2vo(List<MenuInfo> dtoList);
}
